/*
 * @Author: yayalee yangcheng960813@163.com
 * @Date: 2024-07-19 20:27:43
 * @LastEditTime: 2024-07-19 20:42:28
 * @LastEditors: yayalee yangcheng960813@163.com
 * @Description: 
 * @FilePath: \FlappyKnight\assets\module_main\scripts\Main.ts
 * 可以输入预定的版权声明、个性签名、空行等
 */
import { _decorator, Component, EPhysics2DDrawFlags, Node, PhysicsSystem2D } from 'cc';
import { SceneDef, SceneUtil } from '../../scripts/SceneDef';
const { ccclass, property } = _decorator;

@ccclass('Main')
export class Main extends Component {

    @property(Node)
    private btn_start: Node = null!;

    start() {
        this.btn_start.click(() => {
            tgx.UIWaiting.show();
            SceneUtil.loadScene(SceneDef.GAME);
        })

    }       

}


